package top.usts.springframework.core.convert.support;

import top.usts.springframework.core.convert.converter.ConverterRegistry;

/**
 * @description:
 * @author: CJ
 * @date: 2022/2/27
 */
public class DefaultConversionService extends GenericConversionService{

    public DefaultConversionService() {
        addDefaultConverters(this);
    }

    public static void addDefaultConverters(ConverterRegistry converterRegistry) {
        // 添加各类类型转换工厂
        converterRegistry.addConverterFactory(new StringToNumberConverterFactory());
    }

}
